package com.zttek.videoShareProject.modules.model;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author CBY
 * @since 2018-07-03
 */
public class Comment extends Model<Comment> {

    private static final long serialVersionUID = 1L;

	@TableId(value="comment_id", type= IdType.AUTO)
	private Long commentId;
    /**
     * 外键，评论者
     */
	@TableField("user_id")
	private Long userId;
    /**
     * 外键
     */
	@TableField("video_id")
	private Long videoId;
    /**
     * 内容
     */
	private String context;
	@TableField("comment_date")
	private Date commentDate;


	public Long getCommentId() {
		return commentId;
	}

	public void setCommentId(Long commentId) {
		this.commentId = commentId;
	}

	public Long getUserId() {
		return userId;
	}

	public void setUserId(Long userId) {
		this.userId = userId;
	}

	public Long getVideoId() {
		return videoId;
	}

	public void setVideoId(Long videoId) {
		this.videoId = videoId;
	}

	public String getContext() {
		return context;
	}

	public void setContext(String context) {
		this.context = context;
	}

	public Date getCommentDate() {
		return commentDate;
	}

	public void setCommentDate(Date commentDate) {
		this.commentDate = commentDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.commentId;
	}

	@Override
	public String toString() {
		return "Comment{" +
			"commentId=" + commentId +
			", userId=" + userId +
			", videoId=" + videoId +
			", context=" + context +
			", commentDate=" + commentDate +
			"}";
	}
}
